package day15.atm;

import javax.swing.*;
import java.awt.*;

/**
 * 转账界面
 */
public class TransferPanel extends JPanel {
    private ImageIcon saveImg = new ImageIcon("images/buttonClear.jpg");
    private ImageIcon saveImg1 = new ImageIcon("images/buttonSure.jpg");
    private Font font = new Font("黑体",Font.BOLD,30);
    private JLabel saveLabel = new JLabel("转账金额：");
    private JLabel saveLabel1 = new JLabel("账号：");
    private JTextField accountField = new JTextField();
    private JTextField accountField1 = new JTextField();
    private JButton saveButton = new JButton(saveImg);
    private JButton saveButton1 = new JButton(saveImg1);

    public TransferPanel(){
        this.setLayout(null);
        saveLabel.setBounds(300,200,230,50);
        saveLabel.setFont(font);
        accountField.setBounds(500,200,230,50);
        accountField.setFont(font);

        saveLabel1.setBounds(300,250,230,50);
        saveLabel1.setFont(font);
        accountField1.setBounds(500,250,230,50);
        accountField1.setFont(font);

        saveButton.setBounds(442,310,140,50);
        saveButton1.setBounds(442,370,140,50);

        this.add(saveLabel);
        this.add(saveLabel1);
        this.add(accountField);
        this.add(accountField1);
        this.add(saveButton);
        this.add(saveButton1);
        this.setOpaque(false);
    }
}
